/**
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
** \file StringObject.h
** \version $Id: StringObject.h 21 2009-10-20 19:37:56Z tyree731 $
*/

#ifndef _STRINGOBJECT_H
#define _STRINGOBJECT_H

#include "Object.h"

#include <string>

class StringObject : public Object
{
public:
  StringObject();
  explicit StringObject(const std::string& other);
  StringObject(const StringObject& other);

  ~StringObject();

  unsigned int hash() const;

  char& operator[](const int index);

  bool operator==(const Object& rhs) const;
  bool operator!=(const Object& rhs) const;
  bool operator<(const Object& rhs) const;
  bool operator>(const Object& rhs) const;
  bool operator<=(const Object& rhs) const;
  bool operator>=(const Object& rhs) const;

  bool operator==(const StringObject& rhs) const;
  bool operator!=(const StringObject& rhs) const;
  bool operator<(const StringObject& rhs) const;
  bool operator>(const StringObject& rhs) const;
  bool operator<=(const StringObject& rhs) const;
  bool operator>=(const StringObject& rhs) const;

  const StringObject operator+(const StringObject& rhs) const;
  StringObject& operator+=(const StringObject& rhs);

private:
  std::string _privateString;
};

#endif
